import { Ref } from 'vue'
import { AxiosPromise } from 'axios'
import { ResProps } from '../request'

export interface UseLoadingRequestParameters<T> {
  loadings: Ref<boolean> | Ref<boolean>[]
  state?: Ref<T>
  axios: AxiosPromise<ResProps<T>>
}

export interface UseIsNullRequestParameters<T> {
  state: Ref<T[]>
  axios: AxiosPromise<ResProps<T[]>>
}
